﻿Public Class _Default
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

        If User.IsInRole("superuser") Then
            ph_SuperUsers.Visible = True
            ph_OrdinaryUsers.Visible = False
            ph_PleaseRegister.Visible = False
        End If


        If User.IsInRole("ordinaryuser") Then
            ph_SuperUsers.Visible = False
            ph_OrdinaryUsers.Visible = True
            ph_PleaseRegister.Visible = False

        Else
            ph_SuperUsers.Visible = False
            ph_OrdinaryUsers.Visible = False
            ph_PleaseRegister.Visible = True
        End If




    End Sub

End Class